//
//  PCDApiGetStorageInfo.m
//  PCDBank
//
//  Created by lyy on 2021/3/17.
//  Copyright © 2021 DK. All rights reserved.
//

#import "PCDApiGetStorageInfo.h"
#import "PCDDataBaseModel.h"


@implementation PCDApiGetStorageInfo

- (void)handler:(id)data andContext:(PCDContext *)context ResponseCallback:(WVJBResponseCallback)responseCallback {
    
    NSDictionary *parameters = (NSDictionary *)data;
    NSString *callBack = [parameters objectForKey:@"success"];
    
    NSString *info = [[PCDDataBaseModel shareModel] getStorageInfoFromDataBase];
    evaluateJavaScriptOnMainThread(self, callBack, info);
}

@end
